// 员工模块  静态路由
import Layout from '@/layout'

export default {
    path: '/employees',
    component: Layout,
    children: [{
            path: '',
            name: 'employees',
            component: () =>
                import ('@/views/employees'),
            meta: { title: '员工 ', icon: 'people' }
        },
        {
            // 动态路由参数  员工查看操作  props设置为true表示，动态路由参数可以直接从组件的props中直接获取，减少对路由API的依赖
            path: 'detail/:id',
            component: () =>
                import ('@/views/employees/detail'),
            hidden: true,
            props: true,
            meta: {
                title: '员工详情'
            }
        },
        // 员工打印页
        {
            path: 'print/:id',
            component: () =>
                import ('@/views/employees/print'),
            hidden: true,
            meta: {
                title: '员工打印'
            }
        }
    ]


}